Troubleshooting and Optimization

Targeted DVA-C02 practice for this exam objective, with an explanation for every answer option.

Practise this domain free

Certification
DVA-C02
Domain
Troubleshooting and Optimization
Questions
10

Practice DVA-C02 Troubleshooting and Optimization questions with exam-style scenarios, detailed explanations, and option-by-option rationale for this domain.

Example question from this objective

Each option is explained, so the reasoning behind the distractors is part of the answer.

A containerized Lambda function has slow cold starts because the image includes build tools, test data, and unused packages. What should the developer do?

  • Disable all image scanning and rebuild history.
  • Use a smaller runtime image and remove unnecessary layers and dependencies.
  • Store production secrets in the image to avoid runtime calls.
  • Add more unused packages so the image has every possible tool.

Disable all image scanning and rebuild history. — Image scanning and build history support security and traceability and do not directly optimize startup.

Use a smaller runtime image and remove unnecessary layers and dependencies. — Smaller images with fewer layers and dependencies can reduce pull time, startup time, and attack surface.

Store production secrets in the image to avoid runtime calls. — Secrets should not be baked into container images.

Add more unused packages so the image has every possible tool. — Adding unused packages increases image size and may worsen startup performance.

Continue preparing