Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 9 Question 103 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 103
Topic #: 9
[All DEX-450 Questions]

Which code displays the contents of a Visualforce page as a PDF?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Jean
2 months ago
Haha, these options are like a box of chocolates - you never know what you're gonna get! I'm leaning towards D though.
upvoted 0 times
...
Katina
2 months ago
Ah, the age-old debate of PDF generation in Visualforce. I'll go with B - can't go wrong with good ol' contentType.
upvoted 0 times
Graciela
12 days ago
Option D is also a valid choice, using renderAs='pdf' in the apex:page tag.
upvoted 0 times
...
Geoffrey
21 days ago
I agree with B, setting the contentType to 'application/pdf'.
upvoted 0 times
...
Ciara
22 days ago
I prefer option C, using renderAs='pdf' in the apex:page tag.
upvoted 0 times
...
Yesenia
1 months ago
I think A is the way to go, using renderAs='pdf'.
upvoted 0 times
...
...
Justine
2 months ago
This is easy! You just need to use the renderAs attribute and set it to 'pdf'. C is the winner!
upvoted 0 times
...
Glory
2 months ago
Hmm, I'm torn between B and D. Definitely one of those two, but I can't decide which is better.
upvoted 0 times
...
Karon
2 months ago
I think D is the correct choice. The renderAs='application/pdf' is the key to generating the PDF.
upvoted 0 times
Irma
26 days ago
I also think option D is the correct one with renderAs='application/pdf'.
upvoted 0 times
...
Elden
30 days ago
Yes, D is the right answer for displaying Visualforce page as a PDF.
upvoted 0 times
...
Armando
1 months ago
I agree, option D with renderAs='application/pdf' is the correct choice.
upvoted 0 times
...
...
Elke
2 months ago
C looks like the right answer to me. renderAs='pdf' is the way to display the Visualforce page as a PDF.
upvoted 0 times
Paz
1 months ago
A: Great, thanks for confirming!
upvoted 0 times
...
Sherell
1 months ago
B: Yes, renderAs='pdf' is the attribute to use for displaying a Visualforce page as a PDF.
upvoted 0 times
...
Josephine
2 months ago
A: I think you're right, C is the correct answer.
upvoted 0 times
...
...
Delisa
2 months ago
I'm pretty sure it's B. The contentType='application/pdf' is the way to go.
upvoted 0 times
Simona
2 months ago
Thanks for confirming. B with contentType='application/pdf' is the correct code.
upvoted 0 times
...
Micah
2 months ago
That makes sense. B is the way to display a Visualforce page as a PDF.
upvoted 0 times
...
Ettie
2 months ago
Yes, B is the correct option. It specifies the content type as PDF.
upvoted 0 times
...
Quentin
2 months ago
I think you're right. B is the correct option.
upvoted 0 times
...
...
Lavelle
3 months ago
I'm not sure, but I think C) could also be a valid option since it mentions rendering as PDF.
upvoted 0 times
...
Stefan
3 months ago
I agree with Ulysses, D) makes sense because it specifies the rendering format as PDF.
upvoted 0 times
...
Ulysses
3 months ago
I think the answer is D)
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77