70-306/70-316 Tips & Tricks

Download Report

Transcript 70-306/70-316 Tips & Tricks

Tips & Tricks for
70-305/70-315:
Developing Web Applications
James Kovacs
Leader of Application Development
MTS Allstream Inc.
November 17, 2005
TM
1
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Agenda







Qualifications
Before preparing
Preparation strategies
Writing a multiple choice exam
What to do if you pass the exam?
What to do if you fail the exam?
Major topics of 70-305/70-315


TM
2
Including demos, demos, and more demos
Questions
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Qualifications

Why should you believe anything I’m
going to tell you?

James Kovacs
•
•
•
•
•
•
•
TM
3
B.Sc. (Hon.)
A.M. (aka M.Sc.)
MCP
MCSD (VS6)
MCAD for .NET
MCSD for .NET
MCT
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Before Preparing





TM
4
Familiarize yourself with ASP.NET
conventions and terminology
Write ASP.NET applications
Read articles/books on ASP.NET
Make sure you understand how to
implement standard elements of a web
user interface
Make sure you are familiar with any
special offers available e.g. Second
Chance
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Preparation Strategies

Wing it!


Take self-assessments



5
Transcender.com
Measureup.com
Study groups

TM
MCAD/MCSD Self-Paced Training Kit: Developing Web
Applications with Microsoft® Visual Basic® .NET and
Microsoft Visual C#® .NET, 2nd Edition
Simulated tests


http://assessment.learning.microsoft.com/test/home.asp
Self-paced study guide


Not recommended
Now where would you find one of those??? 
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Writing a Multiple Choice Exam
1.
2.
3.
4.
5.
TM
6
Do a quick first pass through all the
questions
Look for questions that can help you
answer other questions
Read each question (and each
answer) carefully
Read all the answers
Try to answer the question before
looking at the answers
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Writing a Multiple Choice Exam
Do not over-think the question
7. Don’t be afraid to guess, but
eliminate choices to maximize your
chances
8. Don’t be afraid to change answers
9. Don’t let one question throw you
10. Don’t waste time looking for patterns
in the answers
6.
TM
7
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
What to do if you pass
the exam?
Congratulations!!!
TM
8
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
What to do if you fail
the exam?





TM
9
Don’t get discouraged
Immediately write down every
question that you can remember
Look at your score report to see where
you need improvement
Try again soon while the previous test
is still fresh in your mind!!!
And don’t forget to take advantage of
special offers such as Second Chance
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Introduction to Web Programming




Creating Web Forms Applications



TM
10
Types of Applications
Using ASP.NET
Using Visual Studio .NET
Creating an ASP.NET Web Application
Project
Responding to Events
Where Does Processing Occur?
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
The proper syntax for the page directive is:
a)
b)
c)
d)
TM
11
<%@ Page language="c#"
Codebehind="Default.aspx.cs"
AutoEventWireup="false"
Inherits="AspNetTest.Default" %>
<%@ Page language="c#"
Codebehind="Default.aspx.cs"
AutoEventWireup="false"
InheritsFrom="AspNetTest.Default" %>
<%@ Page language="c#"
CompileWith="Default.aspx.cs"
AutoEventWireup="false"
Inherits="AspNetTest.Default" %>
<%@ Page language="c#" CodeFile="Default.aspx.cs"
AutoEventWireup="false"
BaseClass="AspNetTest.Default" %>
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Working with Web Objects




Creating a User Interface



TM
12
Namespace Fundamentals
Namespaces in a Web Application
Maintaining State Information
Using Controls
Validating Data
Navigating Between Forms
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
Users of an application are required to fill out a
form. After a postback, the user loses any
data that they have entered. What is the
easiest way to solve this problem?
a) Persist the form variables in session state
configured in state server or SQL Server
mode
b) Write the form variables into HTTP
headers
c) Store the form variables in cookies
d) Enable viewstate for the page
TM
13
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Storing and Retrieving Data with
ADO.NET




Catching and Correcting Errors



TM
14
Accessing Data with ADO.NET
Using Data Sets on Web Forms
Processing Transactions
Using Exception Handling
Using Error Pages
Logging Exceptions
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
You are building a webpage that displays a
table of user group meetings versus
attendees. You have a dataset with three
tables, Users, UserMeetings, and Meetings,
with a foreign key constraint between Users
and UserMeetings based on UserId and
another FK between Meetings and
UserMeetings based on MeetingId. Which
order should you call the DataAdapters to
fill the typed Dataset?
a)
b)
c)
d)
TM
15
UserMeetings, Users, Meetings
Meetings, UserMeetings, Users
Users, Meetings, UserMeetings
Users, UserMeetings, Meetings
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Advanced Web Forms Programming






Maintaining Security





TM
16
Saving and Retrieving User Information
Using Unmanaged Code
Interoperating with COM
Using Client-Side Scripts
Consuming XML Web Services
Authenticating and Authorizing Users
Using Windows Authentication
Using Forms Authentication
Using Passport Authentication
Providing Secure Communication
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
You have created an ASP.NET application that
will be accessed on a company’s intranet.
Which line should you add to your
web.config to configure the application for
Integrated Windows authentication?
a) <authentication mode=“Windows”/>
b) <authentication mode=“Integrated”/>
c) <authentication type=“Windows”/>
d) <authenticate mode=“Windows”/>
TM
17
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Building and Deploying Web
Applications






Testing Web Applications



TM
18
Building a Web Application
Deploying a Web Application
Creating an Installation Program
Maintaining a Deployed Application
Deploying Across Multiple Servers
Creating Tests
Running Tests
Debugging
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
A recent security audit has revealed that your
ASP.NET application provides detailed error
information, including stack traces and
other debugging details, to remote clients.
How should you modify your web.config file
to prevent this?
a)
b)
c)
d)
TM
19
<customErrors mode=“RemoteOnly”/>
<errors type=“localOnly”/>
<customErrors disabled=“true”/>
<errors disableAll=“true”/>
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Creating Custom Web Controls




Optimizing Web Applications with
Caching




TM
20
Creating Web User Controls
Creating Composite Custom Controls
Creating Rendered Custom Controls
Caching Web Forms
Caching Parts of Web Forms
Caching Application Data
Monitoring Cache Performance
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
You want to cache the default page for 60
minutes. Which of the following directives
will accomplish your goal?
a)
b)
c)
d)
TM
21
<%@ Page language="c#"
Codebehind="Default.aspx.cs"
AutoEventWireup="false"
Inherits="AspNetTest.Default" EnableCaching="true“
%>
<%@ OutputCache Duration="60"
VaryByParam="none" %>
<%@ OutputCache Duration="3600"
VaryByParam="none" %>
<%@ Cache Duration="60" VaryByNone="true" %>
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Formatting Web Application Output



Providing Help



TM
22
Using Cascading Style Sheets
Using XSL Transformations
Adding Help to Web Applications
Using the HTML Help Workshop
Linking HTML Help to Web Forms
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
You want to use CSS within your ASP.NET
application. To apply a style to page
elements, you must link the stylesheet into
the page in the <head> and set which
property of the page elements?
a) CssClass
b) Style
c) StyleClass
d) Css
TM
23
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Major Topics of 70-305/70-315

Globalizing Web Applications



TM
24
Choosing an Approach
Creating and Using Satellite Assemblies
Globalization Issues
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Sample Question
You are using satellite assemblies to provide
localized resources in your ASP.NET
application. Where should you place your
French Canadian satellite assembly?
a) ~/bin/MyApp.resources.fr-ca.dll
b) ~/bin/fr-ca/MyApp.resources.dll
c) ~/bin/fr-ca/MyApp.resources.fr-ca.dll
d) ~/bin/fr/ca/MyApp.resources.dll
TM
25
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.
Questions
http://www.jameskovacs.com
[email protected]
TM
26
Allstream Corp. Allstream Proprietary. Use pursuant to company instructions.