
Explanation:
To collect application logs in App Engine, you can either use the logging package of the chosen language or by writing structured logs to stdout and stderr. Options B, D, and E are incorrect because you need to configure application logs in App Engine, Cloud Logging is enabled automatically, and App Engine has the Logs Writer role by default. References: Google Cloud App Engine Logging Documentation and Google Cloud Structured Logging Documentation.
Ultimate access to all questions.
Your team is developing a Python application for a government agency, and it's decided that the application should be deployed to the App Engine Flexible environment in GCP. There's a security requirement for the collection of the application logs. Which steps can you take to fulfill this requirement? Select TWO.
A
Integrate the Python logging module with Cloud Logging.
B
Enable Cloud Logging.
C
You can write structured logs as JSON objects serialized on a single line to stdout or stderr.
D
Grant the Logs Writer role to App Engine.
E
There is nothing to be done, App Engine automatically sends these logs to the Cloud Logging agent.
No comments yet.