nerdexam
Cisco

350-901 · Question #3

Which two tow actions must be taken when an observable microservice application is developed? (Choose two.)

The correct answer is C. Place log statements in the code. D. Use distributed tracing techniques. When developing an observable microservice application, two crucial actions are to embed log statements for recording application events and to implement distributed tracing to track requests across multiple services.

Software Development and Design

Question

Which two tow actions must be taken when an observable microservice application is developed? (Choose two.)

Options

  • AKnow the state of a single instance of a single service.
  • BPlace "try/except" statement in code.
  • CPlace log statements in the code.
  • DUse distributed tracing techniques.
  • EDeploy microservice to multiple datacenters.

How the community answered

(30 responses)
  • A
    7% (2)
  • C
    90% (27)
  • E
    3% (1)

Why each option

When developing an observable microservice application, two crucial actions are to embed log statements for recording application events and to implement distributed tracing to track requests across multiple services.

AKnow the state of a single instance of a single service.

Knowing the state of a single instance is a desired outcome of observability, but not a specific development action for making the application observable.

BPlace "try/except" statement in code.

Placing "try/except" statements is a fundamental practice for error handling and robust code, but it is not directly an observability technique, although the errors handled should be logged.

CPlace log statements in the code.Correct

Placing log statements in the code is essential for an observable application, providing detailed chronological records of events, errors, and state changes that are critical for debugging and monitoring.

DUse distributed tracing techniques.Correct

Utilizing distributed tracing techniques allows developers to follow the end-to-end path of requests as they traverse multiple microservices, which is vital for understanding performance bottlenecks and debugging issues in a distributed system.

EDeploy microservice to multiple datacenters.

Deploying microservices to multiple datacenters is a strategy for high availability and disaster recovery, not an action directly related to making the application itself observable from a development perspective.

Concept tested: Microservice observability best practices

Source: https://learn.microsoft.com/en-us/azure/architecture/guide/technology-choices/monitoring-observability-patterns

Topics

#Microservices#Observability#Logging#Distributed Tracing

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice