Lesson 1 of 2 Approaching Developer Associate Questions

Reading Developer Associate Questions for the Deciding Detail

This lesson explains how to find the detail that decides a Developer Associate question. The exam asks how to build, secure, deploy and debug applications on AWS, mostly serverless ones, and usually one detail, such as an error code, a phrase like "least code changes" or a number to calculate, decides the answer.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the family a question belongs to and the kind of answer it expects.
  • Recognise clue phrases and the answers they usually point to.
  • Recognise common traps in incorrect options.

Question families

Developer Associate questions fall into five families, and recognising the family tells the candidate what kind of answer to look for. Build questions ask which service or feature to use for a requirement, and the answer is usually the feature designed for exactly that purpose rather than custom code. Secure questions ask how an application should access resources or protect data, and favour roles, temporary credentials, least privilege and managed encryption. Deploy questions ask how to release a change safely and point to aliases, gradual traffic shifting and deployment policies.

Debug questions describe an error or symptom and ask for its cause, which the error message itself often names if it is read carefully. Calculate questions require a number, such as read capacity units, Kinesis shards or Lambda concurrency, and are lost most often through incorrect rounding rather than a wrong formula. The following table summarises the families.

FamilyExample wordingThink about
Build"Which approach should the developer use to...?"The service feature designed for exactly this: SQS for decoupling, Step Functions for workflows
Secure"How should the application access...?"Roles not keys, least privilege, KMS, Secrets Manager, Cognito
Deploy"How can the developer release with minimal risk?"Aliases, canary and linear deployments, SAM, CodeDeploy, Beanstalk policies
Debug"The function fails with... What is the cause?"Error codes, permissions, timeouts, VPC networking, quotas
Calculate"How many RCUs / shards / concurrent executions?"The formula, with careful rounding

Clue phrases

Certain phrases recur frequently in Developer Associate questions, and each typically indicates a particular type of answer. When one of these phrases appears, the corresponding answer should be considered first.

PhraseUsually points to
"least code changes", "without modifying the application"Configuration: environment variables, Parameter Store, AppConfig, service settings
"least operational overhead"Managed and serverless services; native features over custom code
"most secure"IAM roles, temporary credentials, encryption with KMS, secrets in Secrets Manager
"decouple", "absorb spikes"SQS (or SNS fan-out to SQS)
"in order", "exactly once"SQS FIFO with message groups and deduplication
"real time", "replay", "several consumers"Kinesis Data Streams
"cold start", "consistent latency"Provisioned concurrency or SnapStart
"shift traffic gradually"Lambda aliases with CodeDeploy canary or linear deployments

Common traps

Incorrect options in the exam are rarely absurd. They are usually plausible actions that would partly work, but that break a best practice or treat a symptom instead of the cause. Several patterns recur often enough to be recognised on sight.

Storing access keys in code, configuration files or environment variables is almost always wrong, because every AWS compute service can supply temporary credentials through a role. Raising a timeout or a limit is usually wrong when the scenario reveals a cause, such as too little memory, a missing VPC endpoint or an inefficient query; the correct answer fixes the cause. A DynamoDB Scan is wrong whenever the access pattern can be served by a Query on the table or an index.

Some traps rely on similar names. In Amazon ECS, the task role grants permissions to the application, while the task execution role lets ECS pull images and write logs. In AWS Lambda, the execution role controls what the function may call, while the resource-based policy controls who may invoke the function. In calculations, capacity is rounded up for each item: a 6 KB strongly consistent read uses two read capacity units, not one and a half. Finally, a change to a REST API that clients cannot see has usually not been deployed to the stage.

Worked example

Applying the approach

A Lambda function reads a database password from an environment variable. The security team requires the password to be rotated automatically every 30 days, with the LEAST change to the application. What should the developer do?

  1. Family: secure. Clue phrases: "rotated automatically", "least change".
  2. Automatic rotation points to Secrets Manager, not Parameter Store.
  3. Least change: read the secret at runtime through the Parameters and Secrets Lambda extension or the SDK with caching, so rotation needs no redeployment.

The answer is to store the password in Secrets Manager with rotation enabled and read it at runtime. Encrypting the environment variable with KMS would protect it but not rotate it.

Check yourself

A question asks for the solution with the least operational overhead. What should guide the choice?

Show answer

Prefer managed and serverless services and built-in features over custom code or servers you must run, provided the option still meets every stated requirement.

Exam Tips

Remember for the exam

  • Find the deciding detail: an error code, a clue phrase or a number to calculate.
  • "Least code changes" favours configuration and managed features.
  • Roles and temporary credentials beat access keys in every scenario.
  • Fix the cause of a timeout rather than only raising the timeout.
  • Round up per item in DynamoDB capacity calculations.