Bird
0
0

Given this Django settings snippet for Sentry integration:

medium📝 Command Output Q13 of 15
Django - Deployment and Production
Given this Django settings snippet for Sentry integration:
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

sentry_sdk.init(
    dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
    integrations=[DjangoIntegration()],
    traces_sample_rate=1.0,
    send_default_pii=True
)

What will happen when an error occurs in the Django app?
AThe error will be ignored and not reported
BThe error will be sent to Sentry with user info and performance tracing
CThe app will crash without logging the error
DOnly performance data will be sent, no error details
Step-by-Step Solution
Solution:
  1. Step 1: Analyze Sentry init parameters

    DSN is set, Django integration enabled, traces_sample_rate=1.0 means full performance tracing, send_default_pii=True sends user info.
  2. Step 2: Understand error reporting behavior

    With this setup, errors and performance data including user info are sent to Sentry automatically.
  3. Final Answer:

    The error will be sent to Sentry with user info and performance tracing -> Option B
  4. Quick Check:

    Sentry setup sends errors + user info + traces [OK]
Quick Trick: Full Sentry init sends errors and traces [OK]
Common Mistakes:
MISTAKES
  • Ignoring send_default_pii effect
  • Confusing traces_sample_rate with error reporting
  • Assuming errors are not sent automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes